package com.vincent.kdp.ui.other.repository;

import com.loopj.android.http.RequestParams;
import com.vincent.baseapp.util.SPUtil;
import com.vincent.kdp.PostUrl;
import com.vincent.kdp.http.HttpUtil;
import com.vincent.kdp.http.RequestCallBack;
import com.vincent.kdp.ui.bean.response.UncheckGoodsListOutput;
import com.vincent.kdp.util.BaseParam;

public class UncheckGoodsListRepository {
    /**
     * 获取热门商品列表
     *
     * @param callBack 回调方法
     */
    public void reqUncheckGoodsList(int pageNum, RequestCallBack callBack) {
        RequestParams params = new RequestParams();
        params.put("number", BaseParam.getDeviceId());
        params.put("pageNum",pageNum);
        params.put("queryId",SPUtil.getInt("startQueryId"));
        HttpUtil.loadData(PostUrl.UNFINISH_QUERY_LIST, params, UncheckGoodsListOutput.class, callBack);
    }
    public void reqUncheckGoodList( RequestCallBack callBack) {
        RequestParams params = new RequestParams();
        params.put("number", BaseParam.getDeviceId());
        params.put("queryId",SPUtil.getInt("startQueryId"));

        HttpUtil.loadData(PostUrl.UNFINISH_QUERY_LIST, params, UncheckGoodsListOutput.class, callBack);
    }
}
